package com.slipper.exception;

public class DecryptException extends RuntimeException {
    private String code;
    private String message;
    private Throwable throwable;

    public DecryptException(String message) {
        this.code = "0";
        this.message = message;
    }

    public DecryptException(String message, Throwable throwable) {
        this.code = "1";
        this.message = message;
        this.throwable = throwable;
    }

    public DecryptException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Throwable getThrowable() {
        return throwable;
    }

    public void setThrowable(Throwable throwable) {
        this.throwable = throwable;
    }
}
